home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / system / globalbase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-19  |  2.9 KB  |  74 lines

  1. #ifndef SYSTEM_GLOBALBASE_H
  2. #define SYSTEM_GLOBALBASE_H
  3.  
  4. /*
  5. **  $VER: globalbase.h V0.9B
  6. **
  7. **  Definition of the dpkernel's global variables structure.
  8. **
  9. **  (C) Copyright 1996-1997 DreamWorld Productions.
  10. **      All Rights Reserved
  11. */
  12.  
  13. #ifndef DPKERNEL_H
  14. #include <dpkernel/dpkernel.h>
  15. #endif
  16.  
  17. #ifndef EXEC_LIBRARIES_H
  18. #include <exec/libraries.h>
  19. #endif
  20.  
  21. /*****************************************************************************
  22. ** All fields in this structure are private.  This file is included in the
  23. ** developers archive for module writers and debugging purposes only.
  24. */
  25.  
  26. struct GVBase {
  27.   struct Library LibNode;
  28.   WORD   ScreenFlip;                /* Private */
  29.   APTR   SegList;                   /* Private */
  30.   WORD   OldMouseX1;                /* Private */
  31.   WORD   OldMouseY1;                /* Private */
  32.   WORD   OldMouseX2;                /* Private */
  33.   WORD   OldMouseY2;                /* Private */
  34.   WORD   VBLPosition;               /* Private */
  35.   BYTE   Switch;                    /* Private */
  36.   BYTE   Destruct;                  /* Private */
  37.   LONG   RandomSeed;                /* Random seed */
  38.   WORD   BlitterUsed;               /* 0 = Free, 1 = Grabbed */
  39.   WORD   BlitterPriority;           /* 0 = NoPriority, 1 = Priority */
  40.   struct GScreen *CurrentScreen;    /* Currently displayed screen */
  41.   LONG   Ticks;                     /* Vertical blank ticks counter */
  42.   WORD   HSync;                     /* Private */
  43.   struct SysObject *SysObjects;     /* System object list (master) */
  44.   BYTE   DebugActive;               /* Set if debugger is currently active */
  45.   BYTE   ScrBlanked;                /* Set if screen is currently blanked */
  46.   WORD   Version;                   /* The version of this kernel */
  47.   WORD   Revision;                  /* The revision of this kernel */
  48.   struct SScreen   *ScreenList;     /* List of shown screens, starting from back. */
  49.   struct SysObject *ChildObjects;   /* System object list (hidden & children) */
  50.   struct Directory *ReferenceDir;   /* List of references files */
  51.   struct Reference *ReferenceList;  /* List of object references */
  52.   struct Module    *ScreensModule;  /* Pointer to module */
  53.   struct Module    *BlitterModule;  /* Pointer to module */
  54.   struct Module    *FileModule;     /* Pointer to module */
  55.   struct Module    *KeyModule;      /* Pointer to module */
  56.   APTR   ScreensBase;               /* */
  57.   APTR   BlitterBase;               /* */
  58.   APTR   FileBase;                  /* */
  59.   APTR   KeyBase;                   /* */
  60.   struct Module *SoundModule;       /* Pointer to module */
  61.   APTR   SoundBase;                 /* */
  62.   struct ModEntry *ModList;         /* List of modules */
  63.   struct EvtEntry *EventArray;      /* Event array */
  64.   LONG   FlipSignal;                /* Signal mask */
  65.   APTR   FlipTask;                  /* Screen flip task */
  66. };
  67.  
  68. struct SScreen {
  69.   struct SScreen *Next;
  70.   struct GScreen *Screen;
  71. };
  72.  
  73. #endif /* SYSTEM_GLOBALBASE_H */
  74.